<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
  <afh:html>
    <afh:body>
      <af:panelHeader text="Vestigingsbeheer"/>
      <af:messages/>
      <h:form>
        <af:panelGroup>
          <af:panelHeader text="Vestigingen">
            <af:panelButtonBar>
              <af:inputText value="#{bindings.SearchVestiging.inputValue}"
                            label="Zoekterm:"
                            required="#{bindings.SearchVestiging.mandatory}"
                            columns="#{bindings.SearchVestiging.displayWidth}">
                <af:validator binding="#{bindings.SearchVestiging.validator}"/>
              </af:inputText>
              <af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}"
                                text="Search"
                                disabled="#{!bindings.ExecuteWithParams.enabled}"/>
            </af:panelButtonBar>
            <af:table id="masterDetail1"
                      rows="#{bindings.VestigingBeheer1.rangeSize}"
                      first="#{bindings.VestigingBeheer1.rangeStart}"
                      emptyText="#{bindings.VestigingBeheer1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
                      var="row"
                      value="#{bindings.VestigingBeheer1.collectionModel}"
                      selectionState="#{bindings.VestigingBeheer1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.VestigingBeheer1.collectionModel.makeCurrent}">
              <f:facet name="selection">
                <af:tableSelectOne autoSubmit="true" text="Select and ">
                  <af:commandButton text="Edit" action="edit"/>
                </af:tableSelectOne>
              </f:facet>
              <af:column headerText="#{bindings.VestigingBeheer1.labels.Plaats}"
                         sortable="false" sortProperty="Plaats">
                <af:outputText value="#{row.Plaats}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1.labels.Adres}"
                         sortable="false" sortProperty="Adres">
                <af:outputText value="#{row.Adres}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1.labels.Postcode}"
                         sortable="false" sortProperty="Postcode">
                <af:outputText value="#{row.Postcode}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1.labels.Telefoon}"
                         sortable="false" sortProperty="Telefoon">
                <af:outputText value="#{row.Telefoon}"/>
              </af:column>
              <f:facet name="actions">
                <af:commandButton text="New" action="new"/>
              </f:facet>
            </af:table>
          </af:panelHeader>
          <af:panelHeader text="Intercedenten bij deze vestiging">
            <af:table partialTriggers="masterDetail1"
                      rows="#{bindings.VestigingBeheer1VestigingIntercedent1.rangeSize}"
                      first="#{bindings.VestigingBeheer1VestigingIntercedent1.rangeStart}"
                      emptyText="#{bindings.VestigingBeheer1VestigingIntercedent1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
                      var="row"
                      value="#{bindings.VestigingBeheer1VestigingIntercedent1.collectionModel}"
                      selectionState="#{bindings.VestigingBeheer1VestigingIntercedent1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.VestigingBeheer1VestigingIntercedent1.collectionModel.makeCurrent}">
              <f:facet name="selection">
                <af:tableSelectOne text="Select and "/>
              </f:facet>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Naam}"
                         sortable="false" sortProperty="Naam">
                <af:outputText value="#{row.Naam}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Adres}"
                         sortable="false" sortProperty="Adres">
                <af:outputText value="#{row.Adres}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Postcode}"
                         sortable="false" sortProperty="Postcode">
                <af:outputText value="#{row.Postcode}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Woonplaats}"
                         sortable="false" sortProperty="Woonplaats">
                <af:outputText value="#{row.Woonplaats}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Telefoon}"
                         sortable="false" sortProperty="Telefoon">
                <af:outputText value="#{row.Telefoon}"/>
              </af:column>
              <af:column headerText="#{bindings.VestigingBeheer1VestigingIntercedent1.labels.Email}"
                         sortable="false" sortProperty="Email">
                <af:outputText value="#{row.Email}"/>
              </af:column>
            </af:table>
          </af:panelHeader>
        </af:panelGroup>
        <af:commandButton actionListener="#{bindings.Commit.execute}"
                          text="Commit" disabled="#{!bindings.Commit.enabled}"/>
        <af:commandButton actionListener="#{bindings.Rollback.execute}"
                          text="Rollback"
                          disabled="#{!bindings.Rollback.enabled}"
                          immediate="true">
          <af:resetActionListener/>
        </af:commandButton>
        <af:commandLink text="Back" action="back"/>
      </h:form>
      <afh:head title="Vestigingsbeheer">
        <meta http-equiv="Content-Type"
              content="text/html; charset=windows-1252"/>
        <link type="text/css" rel="stylesheet" href="Style.css"/>
      </afh:head>
    </afh:body>
  </afh:html>
</f:view>